package com.ms.demo.controller;

import com.ms.demo.utils.R;
import com.ms.demo.validator.NoRepeatSubmit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Project:demo-DemoController
 * <p>Powered by ms on 2023-01-30 22:21:26
 *
 * @author ms
 * @version 1.0
 * @since 1.8
 */
@RestController
@RequestMapping("/user")
public class DemoController {

    @PostMapping("login")
    @NoRepeatSubmit
    public R login(){

        return R.ok().message("登录成功");
    }

}
